import { Directive, HostListener } from '@angular/core';
import { AsidePanelService } from '../services/aside-panel.service';

@Directive({
  selector: 'a.sidePanelDrawer'
})
export class RightSidePanelDrawerDirective {

  constructor(private asidePanelService:AsidePanelService) { }

  //打开右侧边栏
  @HostListener('click', ['$event.target'])
  public openRightSide(event:Event):void{
    this.asidePanelService.send();
  }
}
